<%-- 
    Document   : formGoganpa
    Created on : 26-feb-2014, 10:57:43
    Author     : Juan
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="utils.OS"%>
<%@page import="java.util.List"%>
<%@page import="java.io.File"%>
<%@page import="archivos.Txt"%>
<!DOCTYPE html>
<html lang="en">
    <head>
        <%@include file="../disenoWeb/title.html" %>
        <meta charset="utf-8">
        <%@include file="../disenoWeb/head.html" %>
        <script src="../disenoWeb/js/formulario.js" type="text/javascript"></script>
        <script>
            /*Ventana emergente*/
            $(document).ready(function() {
                $('#loader-image').hide();
            });
        </script>

        <script>
            function mostrarLoader() {
                $('#loader-image').show();
                $('#formulario').hide();
            }
        </script>

    </head>
    <body id="page2" onload="javascript:cambiarVisualizacionFormularioKegg();">
        <div class="extra">
            <!--==============================header=================================-->
            <header>
                <%@include file="../disenoWeb/divHeader.jsp" %>
                <div class="menu-row">
                    <div class="menu-bg">
                        <div class="main">
                            <nav class="indent-left">
                                <ul class="menu wrapper">
                                    <%@include file="menuGoganpa.html" %>
                                </ul>
                            </nav>
                        </div>
                    </div>
                </div>
                <div class="row-bot">
                    <div class="center-shadow">
                    </div>
                </div>
            </header>

            <!--==============================content================================-->
            <section id="content">
                <div class="content-bg">
                    <div id="loader-image" class="loader">
                        <img src="../disenoWeb/images/loader.gif"/>
                    </div>
                    <div id="formulario" class="main">



                        <form action="..\goganpaComparacion\goganpa.jsp" method="post" id="form_select_orgs_goganpa">

                            <h3>Creation a Network based on a GO-Term</h3>

                            <h4>Ontology:</h4>

                            <select name="ont" required="required">

                                <option value="MF">Molecular Function</option>
                                <option value="BP">Biological Proccess</option>
                                <option value="CC">Cellular Component</option>


                            </select>


                            <h4>Measure:</h4>
                            <select name="medidas_goganpa" required="required">


                                <option value="Resnik">Resnik</option>
                                <option value="Lin">Lin</option>
                                <option value="Rel">Rel</option>
                                <option value="Jiang">Jiang</option>
                                <option value="Wang">Wang</option>

                            </select>

                            <h4>Combine:</h4>
                            <select name="combine_goganpa" required="required">

                                <option value="max">MAX</option>
                                <option value="average">Average</option>
                                <option value="rcmax">Rcmax</option>
                                <option value="bma">BMA</option>

                            </select>

                            <h4>Umbral:</h4>
                            <select name="umbral" required="required">

                                <option value="0.1">0.1</option>
                                <option value="0.2">0.2</option>
                                <option value="0.3">0.3</option>
                                <option value="0.4">0.4</option>
                                <option value="0.5">0.5</option>
                                <option value="0.6">0.6</option>
                                <option value="0.7">0.7</option>
                                <option value="0.8">0.8</option>
                                <option value="0.9">0.9</option>

                            </select>

                            <h4>GO-term: <img width="22px" height="22px" src="../disenoWeb/images/information.png" alt="Information" onclick="javascript:informacionGO();" /></h4> 

                            <div id="informationGO" style="display: none">Example: GO:0000112 <br />
                                If you want all terms -> Empty input.</div>

                            <input type="text" name="term"/>



                            <br />

                            <br />

                            <button type="submit" name="submit_organismo_goganpa" value=" Aceptar " onclick="mostrarLoader();">Accept</button>


                        </form>


                    </div>
                    <div class="block"></div>
                </div>
            </section>
        </div>

        <!--==============================footer=================================-->
        <footer>
            <%@include file="../disenoWeb/footer.html" %>
        </footer>
        <%String errorTermino = (String) session.getAttribute("errorTermino");
            if (errorTermino != null) {
        %><script>alert("Incorrect GO-Term");</script><%
                                    session.removeAttribute("errorTermino");

                                }%>

        <%String error = (String) session.getAttribute("error");
            if (error != null) {
        %><script>alert("the input file is not formatted correctly. It must be a sif file.");</script><%
                                        session.removeAttribute("error");

                                    }%>
        <script type="text/javascript"> Cufon.now();</script>
    </body>
</html>


